package com.hingsmy.pma.services;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class ActorListServlet extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        // 先获取session，再获取其中的值
        String u_name = (String) req.getSession().getAttribute("names");
        String u_pwd = (String) req.getSession().getAttribute("pwd");
        System.out.println("这是ActorListServlet类");
        System.out.println(u_name);
        System.out.println(u_pwd);

    }
}
